using System;
using System.Runtime.Serialization;

namespace YunBox2.Contracts.Core
{
	public class User : BizObject
	{
		#region DataMember

		

		[DataMember]
		public virtual string UserName
		{
			get;
			set;
		}

		[DataMember]
		public virtual string FullName
		{
			get;
			set;
		}

		[DataMember]
		public virtual string Email
		{
			get;
			set;
		}

		[DataMember]
		public virtual string Password
		{
			get;
			set;
		}

		[DataMember]
		public virtual bool IsRoot
		{
			get;
			set;
		}

		[DataMember]
		public virtual DateTime? LastChangedPassword
		{
			get;
			set;
		}

		[DataMember]
		public virtual DateTime? LastLoginTime
		{
			get;
			set;
		}

		[DataMember]
		public virtual DateTime? LastLogoutTime
		{
			get;
			set;
		}

		[DataMember]
		public virtual bool IsDisable
		{
			get;
			set;
		}

		#endregion

		#region SystemObject
        public static readonly Guid RootUserID= Guid.Parse("{8B6DF644-C34B-4F6F-8AC9-D1EC659AB90A}");
		#endregion
	}
}